/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SimHei", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* 头部样式 */
header {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    font-size: 1.5rem;
    color: #3498db;
    margin-bottom: 10px;
    text-align: center;
}

.issue {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
    text-align: center;
}

.stats {
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
}

/* 数据链接配置区域 */
.url-config {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.url-input-group {
    display: flex;
    gap: 10px;
}

#data-url {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-save-url {
    background-color: #3498db;
    color: white;
}

/* 按钮样式 */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.btn-refresh {
    background-color: #9b59b6;
    color: white;
}

.btn-generate {
    background-color: #2ecc71;
    color: white;
}

.btn-export {
    background-color: #f39c12;
    color: white;
}

.btn-clear {
    background-color: #e74c3c;
    color: white;
}

/* 比赛列表样式 */
.matches-container {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.matches-header {
    display: flex;
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
}

.match-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.match-row:nth-child(even) {
    background-color: #f9f9f9;
}

.match-col {
    padding: 10px 5px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-id {
    flex: 1;
}

.col-league {
    flex: 2;
}

.col-time {
    flex: 2;
}

.col-result {
    flex: 3;
    cursor: pointer;
    border: 1px solid #ddd;
    margin: 5px;
    border-radius: 4px;
}

.result-3 {
    background-color: #ffebee;
}

.result-1 {
    background-color: #fff8e1;
}

.result-0 {
    background-color: #e8f5e9;
}

.result-3.selected {
    background-color: #e74c3c;
    color: white;
}

.result-1.selected {
    background-color: #f39c12;
    color: white;
}

.result-0.selected {
    background-color: #27ae60;
    color: white;
}

.team {
    font-weight: bold;
    margin-bottom: 5px;
}

.odds {
    font-size: 0.8rem;
}

/* 组合结果样式 */
.combinations-container {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.combinations-container h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #34495e;
}

.combinations-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.combination-item {
    padding: 8px 5px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.combination-item:last-child {
    border-bottom: none;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    padding: 5px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.page-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

#page-info {
    font-size: 0.9rem;
}

/* 提示框样式 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .match-col {
        font-size: 0.8rem;
        padding: 5px 3px;
    }

    .team {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }

    .odds {
        font-size: 0.7rem;
    }

    .combinations-list {
        max-height: 200px;
    }

    .url-input-group {
        flex-direction: column;
    }

    #data-url {
        width: 100%;
    }

    .btn-save-url {
        width: 100%;
    }
}
/* 添加链接配置区域样式 */
.url-config {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#data-url {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-save-url {
    background-color: #3498db;
    color: white;
}